package com.example.hydropowermanage.pojo;

import com.baomidou.mybatisplus.annotation.*;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
@TableName("utilityusage")
public class UtilityUsage {

    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("userID")
    private Integer userId;
    @TableField("usageMonth")
    private Date usageMonth;
    @TableField("perWaterPrice")
    private Double perWaterPrice;
    @TableField("perElectricityPrice")
    private Double perElectricityPrice;
    @TableField("totalWaterUsage")
    private Double totalWaterUsage;
    @TableField("totalElectricityUsage")
    private Double totalElectricityUsage;
    @TableField("cost")
    private Double cost;
    @TableField("createdAt")
    private Date createdAt;
    @TableField("updatedAt")
    private Date updatedAt;
}


